<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>多语言</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

    <meta name="author" content="http://www.huayingsoft.com/" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=8,IE=9,IE=10" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store">

    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../css/bootstrapEx.css">

    <script src="../../js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../../js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../js/bootstrapEx2.0.js"></script>
</head>
<body>
    
        <span style='font-size:20px;font-weight:bold;'>配置默认语言包</span>
        <p/>
        <button id="btn1" class="btn btn-primary" type="button" data-dismiss="modal" aria-hidden="true">Modal1</button>
        <p/>
</body>
<script>
    languageEn={
        Modal: {
            title: function () { return "Default title"; },
            closebtn: function () { return "close"; }
        }
    }
    //默认语言包
    //bsEx.delanguage = bsEx.language(languageEn);
    bsEx.delanguage(languageEn);
    $(document).ready(function () {
        InitModal1();
        //显示
        $("#btn1").click(function () {
            Modal1.show();
        })
        Modal1.show();
    });

    function InitModal1() {
        $(document.body).append('<div id="modal1"></div>');
        Modal1 = new bsEx.Modal("#modal1");
        Modal1.initMax = true;//是否最大化
        Modal1.btns = [{ id: "closebtn" }],//按钮组
        Modal1.body = "默认标题和默认关闭按钮变成了英文";//内容
    }
</script>
</html>
    
    
    
